package com.freesun.shop;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@EnableDubbo
@SpringBootApplication
@MapperScan("com.freesun.shop.mapper")
@EnableCaching
@EnableAspectJAutoProxy(proxyTargetClass = true)  //使用CGLIB 来做aop的底层代理实现
/**
 * cglib:
 * jdk:
 * jdk创建代理对象时 使用Object object$Proxy=Proxy.newInstace();
 */
public class ShopProvider {
    public static void main(String[] args) throws Exception{
        SpringApplication.run(ShopProvider.class);
    }
}

